<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>添加/编辑文章 - Powered By ${systemConfig.systemName}</title>
<meta name="Author" content="webmall Team" />
<meta name="Copyright" content="webmall" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<#include "/WEB-INF/template/common/include.ftl">
<link href="${base}/template/shop/css/member_center.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/admin/css/input.css" rel="stylesheet" type="text/css" />
<#if !id??>
	<#assign isAdd = true />
<#else>
	<#assign isEdit = true />
</#if>
</head>

<body class="memberCenter">
	<#include "/WEB-INF/template/shop/header.ftl">
	<div class="body memberCenterIndex">
		<div class="bodyLeft">
			<#include "/WEB-INF/template/member/trader_center_left.ftl">
		</div>
				
		<div class="bodyRight">
			<div class="memberCenterDetail list">
				<div class="top">
					<span class="icon">&nbsp;</span><#if isAdd??>添加询问<#else>编辑询问</#if>
            	</div>
				<form id="inputForm" class="validate" action="<#if isAdd??>productconsult!save.action<#else>productconsult!update.action</#if>" method="post">
					<input type="hidden" name="id" value="${id}" />
					<table class="inputTable">
						<tr>
							<th>
								商品名称:
							</th>
							<td>
								<label class="requireField">${(productConsult.product.name)!}</label>
							</td>
						</tr>
						<tr>
							<th>
								咨询类型:
							</th>
							<td>
								<#if (productConsult.type==1)>
									商品咨询
								<#elseif (productConsult.type==2)>
									库存及配送
								<#elseif (productConsult.type==3)>
									支付问题
								<#elseif (productConsult.type==4)>
									发票及保修
								<#elseif (productConsult.type==5)>
									促销及赠品
								</#if>
							</td>
						</tr>
						<tr>
							<th>
								咨询内容:
							</th>
							<td>
								<label class="requireField">${(productConsult.content)!}</label>
							</td>
						</tr>
						<tr>
							<th>
								咨询会员:
							</th>
							<td>
								<label class="requireField">${(productConsult.member.username)!}</label>
							</td>
						</tr>
						<tr>
							<th>
								是否前台显示:
							</th>
							<td>
								<label><input type="radio" name="productConsult.status" value="true"<#if (productConsult.status == true)!> checked</#if> />是</label>
								<label><input type="radio" name="productConsult.status" value="false"<#if (isAdd || productConsult.status == false)!> checked</#if> />否</label>
							</td>
						</tr>
						<tr>
							<th>
								回复内容:
							</th>
							<td>
								<textarea name="productConsult.replycontent" style="width:500px;height:100px;">${(productConsult.replycontent)!}</textarea>
							</td>
						</tr>
					</table>
					<div class="buttonArea">
                        <center>
						<input type="submit" class="formButton" value="确  定" hidefocus="true" />&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回" hidefocus="true" />
                        </center>
					</div>
				</form>
				<div class="bottom"></div>
			</div>
		</div>
		<div class="blank"></div>
		<#include "/WEB-INF/template/shop/friend_link.ftl">
	</div>
	<div class="blank"></div>
	<#include "/WEB-INF/template/shop/footer.ftl">
</body>
</html>